package com.jinzhi.wxpay.enums.wxpay;


import lombok.AllArgsConstructor;
import lombok.Getter;
import sun.net.spi.nameservice.dns.DNSNameServiceDescriptor;

//订单枚举类
@AllArgsConstructor
@Getter
public enum WxApiType {

    /**
     * 这些是具体的微信api地址
     */

    /**
     * Native 下单
     */
    NAITVE_PAY("/v3/pay/transactions/native"),


    /**
     * JSAPI 下单
     * */
    JSAPI_PAY("/v3/pay/transactions/jsapi"),


    /**
     * 查询订单
     */
    ORDER_QUERY_BY_NO("/v3/pay/transactions/out-trade-no/%s"),


    /**
     * 小程序查询订单
     * */
    JSAPI_ORDER_QUERY_BY_NO("/v3/pay/transactions/id/{transaction_id"),

    /**
     * 关闭订单
      */
    CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),


    /**
     * 小程序关闭订单
     * */
    JSAPI_CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/{out_trade_no}/close"),

    /**
     * 申请退款
      */
    DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),


    /**
     * 查询单笔退款
     */
    DOMESTIC_REFUNDS_QUERY("/v3/refund/domestic/refunds/%s"),


    /**
     * 申请资金账单
     */
    FUND_FLOW_BILLS("/v3/bill/fundflowbill"),

    ;

    /**
     * 类型
     */
    private  final  String type;

}
